/*
* @Author: Marte
* @Date:   2017-08-14 08:49:57
* @Last Modified by:   Marte
* @Last Modified time: 2017-08-14 09:04:27
*/

window.onload=function()
{
    var message=document.getElementsByName('message');
    for(var i=0;i<message.length;i++)
    {
        message[i].onclick=function()
        {
            centerWindow('send_message_to.php?id='+this.title,'message',450,800);
        }
    }
}
//弹窗函数
function centerWindow(url,name,height,width)
{
    window.open(url,name,'height='+height+',width='+width+',top=0,left=0');
}


































